//
//  FinanceLSViewController.m
//
//
//  Created by mac on 15/1/11.
//  Copyright (c) 2015年 mac. All rights reserved.
//

#import "FinanceLSViewController.h"

@interface FinanceLSViewController ()<UIWebViewDelegate>

@end

@implementation FinanceLSViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"智投贷";
    
    // Do any additional setup after loading the view.
    self.automaticallyAdjustsScrollViewInsets = NO;
    UIWebView * webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, self.view.bounds.size.height - 64)];
    
    webView.scalesPageToFit = YES;
    NSURL * url = [NSURL URLWithString:[NSString stringWithFormat:@"http://61.50.127.122:8022/LoginForH5?Phone=%@",kUserInfo.tel]];
    NSURLRequest * request = [NSURLRequest requestWithURL:url];
    [webView loadRequest:request];
    webView.delegate = self;
    
    [self.view addSubview:webView];
}

- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{
    return YES;
}
- (void)webViewDidStartLoad:(UIWebView *)webView{
    
}
- (void)webViewDidFinishLoad:(UIWebView *)webView{
    
}
- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error{
    
}

@end
